<?php $this->load->module('index/index/head',$params);?>
<div class="header_banner">

    <?php
    $TAB_PIC = <<<TEMPLATE
                    {listinfo}
                    <a href="{link}"><img src="{pic}" alt="{title}"></a>
                   {/listinfo}
TEMPLATE;
    ?>
    <?php diy('bai_banner_1', 'imagelist', $TAB_PIC);?>
</div>
<div class="content">
    <div class="xie_nav">您所在的位置：<a href="/">首页</a>><span>本地攻略</span></div>
    <div class="xianlu_fuxuan">
        <div class="xianlu_fuxuan_2">
            <div class="xianlu_fuxuan_2_part1">
                <div class="xianlu_fuxuan_part_title">关键字</div>
                <div class="xianlu_fuxuan_part_sousuo">
                    <form action="<?php echo site_url('/bendiyou/list_0_0_'.$category.'_0_');?>" name="search_gonglve" method="post">
                        <input type="text" name="search_keywords" class="search_ipt" placeholder="关键字" value="<?php echo $keywords?>">
                        <input type="button" class="search_btn">
                    </form>
                </div>
            </div>
            <div class="xianlu_fuxuan_2_part1">
                <div class="xianlu_fuxuan_part_title"><?php echo SITECITYNAME?>特色</div>
                <div class="xianlu_fuxuan_part_leixing">
                    <ul>
                        <?php foreach($cat_list as $key=>$val):?>
                        <?php if($key==$category):?>
                                <span><?php echo $val?></span>
                                <?php else:?>
                                <li><a href="/bendiyou/list_0_0_<?php echo $key?>_0_<?php echo urlencode($keywords)?>"><?php echo($key>0)?SITECITYNAME:''?><?php echo $val?></a></li>
                                <?php endif;?>
                        <?php endforeach;?>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="xianlu_list">
        <?php if($trips_list):?>
        <?php foreach($trips_list as $val):?>
        <div class="chizhu_part">
            <div class="chizhu_part_lt"><a target="_blank" href="<?php echo $val['data_uri']?>"><img src="<?php echo $val['file_url']?>" width="255" height="156"></a></div>
            <div class="chizhu_part_ct">
                <Div class="chizhu_part_ct_tit"><?php echo $val['subject']?></Div>
                <Div class="chizhu_part_ct_cen"><p><?php echo $val['abstract']?></p></Div>
                <Div class="chizhu_part_ct_but"><span>作者：<?php echo $val['author']?></span></Div>
            </div>
            <div class="chizhu_part_rt">
                <a  target="_blank" href="<?php echo $val['data_uri']?>">查看详情>></a>

            </div>
        </div>
        <?php endforeach;?>
        <?php else:?>
        抱歉，没有符合条件按的结果。
        <?php endif;?>



    </div>
    <div class="sale-main-bottom">
        <div class="page_nav"><?php echo $this->mypageclass->show(2);?></div>

    </div>
</div>
<?php $this->load->module('index/index/foot');?>
<script type="text/javascript">
$(function(){
    $('.search_btn').click(function(){
        var fkw = $('input[name="search_keywords"]');//alert(fkw.val());return false;
        var url = '<?php echo site_url('/bendiyou/list_0_0_'.$category.'_0_');?>';
//        if(fkw.val() != ''){
            window.location.href = url+encodeURIComponent(fkw.val());
//        }else{
//            fkw.focus();
//        }
        return false;
    });
});
</script>

